home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 3 / Precision Software Applications Silver Collection Volume Three (PSM) (1993).iso / music2 / moded301.arj / RAW2SAM.DOC < prev    next >
Text File  |  1992-11-30  |  3KB  |  76 lines

  1. ----------------------------------------------------------------------
  2.             Raw sound to SAM converter
  3. ----------------------------------------------------------------------
  4.  
  5.               Version 1.10 (12/01/92)
  6.               Jim Dahl
  7.  
  8. 1. PURPOSE
  9.  
  10. RAW2SAM.EXE converts raw sound files (and some VOC's, see 4) to .SAM files
  11. suitable for use in ModEdit.  VOC files, such as those recorded by the
  12. sound blaster, and WAV files do not work directly in ModEdit as samples.
  13. Therefore, to create instruments for ModEdit from VOC or RAW sound files,
  14. a conversion utility is required.
  15.  
  16. 2. USAGE
  17.  
  18. After typing 'RAW2SAM' on the command line, the program will prompt for
  19. an input file name and an output file name.  The output file name will
  20. default to the first eight characters of the input file name with a '.SAM'
  21. extension.
  22.  
  23. Instead of using the interactive mode, the user can also type:
  24.  
  25.      RAW2SAM  InFile  [OutFile]
  26.  
  27. If both an input file and an output file are specified, the program will
  28. execute the conversion.  If only and input file is specified, the program
  29. will prompt for an output file, with a default value of the first eight
  30. characters of the input file name with a '.SAM' extension.
  31.  
  32. It is recommended that the '.SAM' extension be used, as ModEdit will only
  33. recognize those samples which have an '.SAM' extension.
  34.  
  35. RAW2SAM assumes that the OutFile should be overwritten if it already exists
  36. and therefore does not prompt or warn the user.
  37.  
  38. 3. FUNCTION
  39.  
  40. RAW2SAM converts the sound data from the input file from unsigned to signed
  41. sound data.  (Most popular sound types, including VOC files, use unsigned
  42. data; SAM files use signed data).
  43.  
  44. RAW2SAM was written in assembly, then PKLITE'd so it is very compact and
  45. time efficient.  
  46.  
  47. 4. USAGE TIPS - RAW and VOC FILES
  48.  
  49. ModEdit assumes the sample will be a middle C, sampled at 8000hz.  This
  50. corresponds to C2 in ModEdit, the default instrument pitch.  It is
  51. recommended that all samples be middle C sampled at 8000hz, otherwise
  52. pitch adjustments will be necessary in the MOD file.
  53.  
  54. Though VOC files are not raw sound, the header is very small, and
  55. can be ignored.  The only problems with converting VOC files arise when
  56. there are multiple blocks within VOC files, varying sampling rates within
  57. the same VOC, special commands (such as repeats) within the VOC, VOC
  58. compression (any type), or other data within the VOC which is not raw
  59. sound data.
  60.  
  61. I have also included a utility VOC2RAW.EXE which claims to convert .VOC
  62. files to .RAW sound files suitable for conversion to .SAM files.  I have
  63. performed only light testing on it, and do not warrant its usability.  In
  64. most cases it should not be required.
  65.  
  66. I can be contacted at:
  67.  
  68. Internet
  69.     JADAHL@NDSUVM1
  70.  
  71. City Lites BBS
  72.     (701) 775-1143  (2400- baud)
  73.     (701) 772-5399  (9600+ baud)
  74.     e-mail Jim Dahl
  75.  
  76.